import Request from '@/libs/request'
import qs from 'qs'


// 使用枚举包含所有path
enum Api {
  // 查询设备电极校准功能
  selectCalibrationConf = "/user/selectCalibrationConf",
  // 电极校准功能
  exeCalibration = "/user/exeCalibration"
}



// 查询设备电极校准功能的Api
export const selectCalibrationConfApi = (data: { devId: number }) => {
  let datas = qs.stringify(data)
  console.log(datas);
  return Request.post(Api.selectCalibrationConf + "?" + datas)
}


// 电极校准功能的Api
export const exeCalibrationApi = (data: { controlId: number, calibrationValue: number }) => {
  let datas = qs.stringify(data)
  console.log(datas);
  return Request.post(Api.exeCalibration + "?" + datas)
}